package com.project.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.entity.SupplierEntity;
import com.project.entity.TenderEntity;
import com.project.service.ISupplyInfoMonitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("SupplyInfoMonitor")
public class SupplyInfoMonitorController {

    @Autowired
    private ISupplyInfoMonitor service;

    @RequestMapping("findAll")
    public List<SupplierEntity> findAll() {
        return service.findAll();
    }

    @RequestMapping("findById")
    public SupplierEntity findById(Integer id) {
        return service.findById(id);
    }
}
